/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JPanelMLF.java
 *
 * Created on Dec 4, 2011, 2:41:15 PM
 */
package management;

import javax.swing.*;
import net.miginfocom.swing.MigLayout;

/**
 *
 * @author buer
 */
public class JPanelMLF extends javax.swing.JPanel {

    /** Creates new form JPanelMLF */
    public JPanelMLF() {
        initComponents();
        jp = new JPanel(new MigLayout());
        jp.add(jBChange);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jBChange = new javax.swing.JButton();

        jBChange.setText("Change to Recitation");
        jBChange.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jBChangeMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(118, 118, 118)
                .addComponent(jBChange)
                .addContainerGap(126, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(128, 128, 128)
                .addComponent(jBChange)
                .addContainerGap(142, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jBChangeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jBChangeMouseClicked
        // TODO add your handling code here:
        System.out.println("Mouse Clicked.");
    }//GEN-LAST:event_jBChangeMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBChange;
    // End of variables declaration//GEN-END:variables
    
    public JPanel createLayout() {
        return jp;
    }
    private JPanel jp;
}
